package com.springboot.middleware.middleware_redisson.server.dto;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

public class UserLoginDto implements Serializable {
    @NotBlank
    private String userName;    //用户名,必填
    @NotBlank
    private String password;    //密码,必填
    private Integer userId;     //用户id

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "UserLoginDto{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", userId=" + userId +
                '}';
    }
}
